package com.lykj.llw.box.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.lykj.llw.box.R
import com.lykj.llw.box.data.bean.response.GameDetailResponse

/**
 * ================================================
 * 游戏礼包适配器
 * ================================================
 *
 * @author gosha
 * @date 2023/11/2-16:01
 */
class GameGiftBagAdapter :
    BaseQuickAdapter<GameDetailResponse.DataDTO.CardsDTO, BaseViewHolder>(R.layout.item_game_gift_bag) {
    override fun convert(holder: BaseViewHolder, item: GameDetailResponse.DataDTO.CardsDTO) {
        holder.setText(R.id.tv_name, "${item.name}")
        holder.setText(R.id.tv_summery, "${item.excerpt}")

        holder.setText(R.id.tv_btn_option, "${if (item.status == 1) "已领取" else "领取"}")
    }
}